<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateAppUserFeedbackTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('user_feedback', function(Blueprint $table)
		{
			$table->integer('id', true);
			$table->integer('user_id')->comment('用户id');
			$table->boolean('type')->comment('反馈类型 1功能建议 2性能问题 3Bug反馈');
			$table->string('content')->comment('反馈内容');
			$table->string('contact', 20)->nullable()->comment('联系方式');
			$table->dateTime('create_time')->nullable();
			$table->dateTime('update_time')->nullable();
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('app_user_feedback');
	}

}
